<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id = 'app'>
        <a :href="url">百度</a>
    </div>
   
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        //1、v-bind 动态绑定属性。例如a标签中的href属性、img标签张的src属性
        //2、v-bind的语法糖：就是:

        var app = new Vue({
            el:'#app',
            data:{
             message:'hello',
             url:'http://www.baidu.com'
            },
           
        })

    </script>
    
</body>
</html>